package com.translate.web.service;

import java.util.List;

import com.translate.entity.Team;
import com.translate.vo.contract.ITeamVO;
import com.translate.web.param.contract.IIdAndUserIdParam;
import com.translate.web.param.contract.ITeamSearchParam;

public interface ITeamService extends IBaseTranslateService<Team> { 

	<VO extends ITeamVO> List<VO> getTeamBySearch (ITeamSearchParam param, Class<VO> target);
	
	
	
	Team getTeamFromCache(int id, long userId);
	
	int updateTeamDiscount(int id, long userId, Float discount);
	
	
	/**
	 * 取消申请
	 * @param userId
	 * @return
	 */
	int deleteByUserId(int userId);
	
}
